package com.app.client;

import com.app.api.HelloApi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by Hua wb on 2018/11/30.
 */
@Controller
public class HelloController {

    @Autowired
    private HelloApi helloApi;

    @RequestMapping("/")
    @ResponseBody
    public String sayHello(){
        return helloApi.hello();
    }
}
